package com.syx.constant;

public enum BusinessEnum {

    BAD_REQUEST(400,"请求错误"),
    UN_AUTHORIZATION(401,"未授权"),
    FORBIDDEN(403,"禁止访问"),
    INTERNAL_SERVER_ERROR(500,"服务器异常"),
    OPERATION_FAIL(-1,"操作失败"),;


    BusinessEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    /**
     * 状态码
     */
    private Integer code;
    /**
     * 状态码描述
     */
    private String desc;

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}